package com.design01_builder.pattern01_singleton;

/**
 * @ClassName Singleton06
 * @Description 枚举类 枚举类没有空参构造
 * @Author zhangjunhao
 * @DATE 2023/9/1 0:02
 */
public enum Singleton06 {

    INSTANCE;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }


    public static Singleton06 getInstance(){
        return INSTANCE;
    }

}
